package com.home.cop.sysinfo.model;

import java.util.Date;
import java.util.List;

public class SysDataDict implements Comparable<SysDataDict>{
    private String sysDictCode;

    private String sysDictName;

    private String sysDictDesc;

    private Integer sysDictSort;

    private Integer sysDictLevel;

    private Integer sysDictStatus;

    private Date createTime;

    private List<SysDataDict> children;

    public String getSysDictCode() {
        return sysDictCode;
    }

    public void setSysDictCode(String sysDictCode) {
        this.sysDictCode = sysDictCode == null ? null : sysDictCode.trim();
    }

    public String getSysDictName() {
        return sysDictName;
    }

    public void setSysDictName(String sysDictName) {
        this.sysDictName = sysDictName == null ? null : sysDictName.trim();
    }

    public String getSysDictDesc() {
        return sysDictDesc;
    }

    public void setSysDictDesc(String sysDictDesc) {
        this.sysDictDesc = sysDictDesc == null ? null : sysDictDesc.trim();
    }

    public Integer getSysDictSort() {
        return sysDictSort;
    }

    public void setSysDictSort(Integer sysDictSort) {
        this.sysDictSort = sysDictSort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getSysDictLevel() {
        return sysDictLevel;
    }

    public void setSysDictLevel(Integer sysDictLevel) {
        this.sysDictLevel = sysDictLevel;
    }

    public Integer getSysDictStatus() {
        return sysDictStatus;
    }

    public void setSysDictStatus(Integer sysDictStatus) {
        this.sysDictStatus = sysDictStatus;
    }

    public List<SysDataDict> getChildren() {
        return children;
    }

    public void setChildren(List<SysDataDict> children) {
        this.children = children;
    }

    @Override
    public int compareTo(SysDataDict o) {
        return this.getSysDictSort() - o.getSysDictSort();
    }
}

